/**
 * Created by thanks_bin on 2014/10/13.
 */
var siteListFromXml = null;
var calbackFunction = null;
var getCityFromXml = {
    callJavaFunction : function(success, fail, data, jsonString){
        return cordova.exec(success, fail,
            "readXmlFile",
            data, jsonString);
    }
}

function callNativePlugin(opType, jsonString, callback) {
    getCityFromXml.callJavaFunction(nativePluginResultHandler, nativePluginErrorHandler, opType, jsonString);
    calbackFunction = callback;
}
function nativePluginResultHandler (result) {
    calbackFunction(result);
}
function nativePluginErrorHandler (error) {
    calbackFunction(error);
}